<?php
/**
 * Created by 云中有鹿.
 * User: 陈云
 * Blog: http://blog.likecy.cn
 * Date: 2019-04-05
 * Time: 19:27
 */

namespace app\car\model;


use think\Model;

class CarInfo extends Model
{
    protected  $name = "car_carinfo";

    public function getValidityTimeAttr($value, $data)
    {
        return date('Y-m-d H:i',$data['validity_time']);
    }

    public function getBuyTimeAttr($value, $data)
    {
        return date('Y-m-d H:i',$data['buy_time']);
    }

}